﻿@model IEnumerable<BootyBay.Models.View_Application>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<h2>Index</h2>

    <p>
        @Html.ActionLink("Create New", "Create")
    </p>*@

@using (Ajax.BeginForm("PackageList", "", new AjaxOptions
{
    HttpMethod = "GET",
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "packageListContent",
    OnComplete = "",
    OnBegin = ""
}))
{
    <div>
        <h2>Apps</h2>
        <p>
            We’ve got all your app info here in one place. If you want to make any changes, submit a new version, or add in-app products to your app, click the appropriate link and we’ll get you to the right place.
        </p>
    </div>
    <div>
        <input type="text" name="name" />
        <input type="submit" value="Search" /><br />
        @Html.ActionLink("Submit App", "ApplicationInfo") | @Html.ActionLink("Submit Public Store App", "ApplicationInfo", new { viewName = "ApplicationPublicInfo" })
    </div>
    <div id="packageList">

        <div id="packageListContent">
            @Html.Partial("_PackageList", Model)
        </div>
    </div>
}



